home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1780 < prev    next >
Mailbox/MIME Entity  |  1996-08-06  |  2.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 69 61 73 74 61 |Path: ne|ws.iasta|
|00000010| 74 65 2e 65 64 75 21 75 | 73 65 6e 65 74 0a 46 72 |te.edu!u|senet.Fr|
|00000020| 6f 6d 3a 20 53 74 65 76 | 65 20 4c 65 65 20 3c 73 |om: Stev|e Lee <s|
|00000030| 6a 6c 65 65 40 69 61 73 | 74 61 74 65 2e 65 64 75 |jlee@ias|tate.edu|
|00000040| 3e 0a 4e 65 77 73 67 72 | 6f 75 70 73 3a 20 63 6f |>.Newsgr|oups: co|
|00000050| 6d 70 2e 6c 61 6e 67 2e | 63 2b 2b 0a 53 75 62 6a |mp.lang.|c++.Subj|
|00000060| 65 63 74 3a 20 52 65 3a | 20 43 2b 2b 20 20 56 73 |ect: Re:| C++ Vs|
|00000070| 2e 20 43 20 20 26 20 45 | 66 66 69 63 69 65 6e 63 |. C & E|fficienc|
|00000080| 79 0a 44 61 74 65 3a 20 | 46 72 69 2c 20 31 32 20 |y.Date: |Fri, 12 |
|00000090| 4a 61 6e 20 31 39 39 36 | 20 31 37 3a 30 38 3a 30 |Jan 1996| 17:08:0|
|000000a0| 39 20 2d 30 38 30 30 0a | 4f 72 67 61 6e 69 7a 61 |9 -0800.|Organiza|
|000000b0| 74 69 6f 6e 3a 20 49 6f | 77 61 20 53 74 61 74 65 |tion: Io|wa State|
|000000c0| 20 55 6e 69 76 65 72 73 | 69 74 79 0a 4d 65 73 73 | Univers|ity.Mess|
|000000d0| 61 67 65 2d 49 44 3a 20 | 3c 33 30 46 37 30 35 46 |age-ID: |<30F705F|
|000000e0| 39 2e 34 30 33 46 40 69 | 61 73 74 61 74 65 2e 65 |9.403F@i|astate.e|
|000000f0| 64 75 3e 0a 52 65 66 65 | 72 65 6e 63 65 73 3a 20 |du>.Refe|rences: |
|00000100| 3c 34 64 35 71 67 31 24 | 33 66 61 40 6e 65 77 73 |<4d5qg1$|3fa@news|
|00000110| 31 2e 75 73 61 2e 70 69 | 70 65 6c 69 6e 65 2e 63 |1.usa.pi|peline.c|
|00000120| 6f 6d 3e 0a 4e 4e 54 50 | 2d 50 6f 73 74 69 6e 67 |om>.NNTP|-Posting|
|00000130| 2d 48 6f 73 74 3a 20 64 | 69 61 6c 33 38 2e 70 70 |-Host: d|ial38.pp|
|00000140| 70 2e 69 61 73 74 61 74 | 65 2e 65 64 75 0a 4d 69 |p.iastat|e.edu.Mi|
|00000150| 6d 65 2d 56 65 72 73 69 | 6f 6e 3a 20 31 2e 30 0a |me-Versi|on: 1.0.|
|00000160| 43 6f 6e 74 65 6e 74 2d | 54 79 70 65 3a 20 74 65 |Content-|Type: te|
|00000170| 78 74 2f 70 6c 61 69 6e | 3b 20 63 68 61 72 73 65 |xt/plain|; charse|
|00000180| 74 3d 75 73 2d 61 73 63 | 69 69 0a 43 6f 6e 74 65 |t=us-asc|ii.Conte|
|00000190| 6e 74 2d 54 72 61 6e 73 | 66 65 72 2d 45 6e 63 6f |nt-Trans|fer-Enco|
|000001a0| 64 69 6e 67 3a 20 37 62 | 69 74 0a 58 2d 4d 61 69 |ding: 7b|it.X-Mai|
|000001b0| 6c 65 72 3a 20 4d 6f 7a | 69 6c 6c 61 20 32 2e 30 |ler: Moz|illa 2.0|
|000001c0| 62 34 61 20 28 57 69 6e | 31 36 3b 20 49 29 0a 54 |b4a (Win|16; I).T|
|000001d0| 6f 3a 20 67 72 61 6e 74 | 70 40 75 73 61 2e 70 69 |o: grant|p@usa.pi|
|000001e0| 70 65 6c 69 6e 65 2e 63 | 6f 6d 0a 0a 67 72 61 6e |peline.c|om..gran|
|000001f0| 74 70 40 75 73 61 2e 70 | 69 70 65 6c 69 6e 65 2e |tp@usa.p|ipeline.|
|00000200| 63 6f 6d 20 77 72 6f 74 | 65 3a 0a 3e 20 0a 3e 20 |com wrot|e:.> .> |
|00000210| 4f 6e 20 4a 61 6e 20 31 | 32 2c 20 31 39 39 36 20 |On Jan 1|2, 1996 |
|00000220| 30 39 3a 33 34 3a 30 33 | 20 69 6e 20 61 72 74 69 |09:34:03| in arti|
|00000230| 63 6c 65 20 3c 43 2b 2b | 20 20 56 73 2e 20 43 20 |cle <C++| Vs. C |
|00000240| 20 26 20 45 66 66 69 63 | 69 65 6e 63 79 3e 2c 0a | & Effic|iency>,.|
|00000250| 3e 20 27 65 64 77 69 6e | 74 40 69 6e 66 6f 6d 61 |> 'edwin|t@infoma|
|00000260| 74 63 68 2e 63 6f 6d 20 | 28 45 64 77 69 6e 20 54 |tch.com |(Edwin T|
|00000270| 61 6d 29 27 20 77 72 6f | 74 65 3a 0a 3e 20 0a 3e |am)' wro|te:.> .>|
|00000280| 20 0a 3e 20 3e 48 65 6c | 6c 6f 2c 0a 3e 20 3e 0a | .> >Hel|lo,.> >.|
|00000290| 3e 20 3e 49 20 68 61 76 | 65 20 72 65 63 65 6e 74 |> >I hav|e recent|
|000002a0| 6c 79 20 62 65 63 6f 6d | 65 20 70 72 6f 66 69 63 |ly becom|e profic|
|000002b0| 69 65 6e 74 20 69 6e 20 | 43 2b 2b 20 70 72 6f 67 |ient in |C++ prog|
|000002c0| 72 61 6d 6d 69 6e 67 20 | 61 6e 64 20 77 61 73 20 |ramming |and was |
|000002d0| 77 6f 6e 64 65 72 69 6e | 67 0a 3e 20 61 62 6f 75 |wonderin|g.> abou|
|000002e0| 74 0a 3e 20 3e 74 68 65 | 20 61 64 76 61 6e 74 61 |t.> >the| advanta|
|000002f0| 67 65 73 20 6f 66 20 43 | 2b 2b 20 76 73 20 43 2e |ges of C|++ vs C.|
|00000300| 20 4f 6e 65 20 74 68 69 | 6e 67 20 74 68 61 74 20 | One thi|ng that |
|00000310| 68 61 73 20 61 6c 77 61 | 79 73 20 73 6f 72 74 61 |has alwa|ys sorta|
|00000320| 20 62 75 67 67 65 64 20 | 6d 65 0a 3e 20 74 68 6f | bugged |me.> tho|
|00000330| 75 67 68 0a 3e 20 3e 74 | 68 65 20 71 75 65 73 74 |ugh.> >t|he quest|
|00000340| 69 6f 6e 20 6f 66 20 74 | 68 65 20 65 78 74 72 61 |ion of t|he extra|
|00000350| 20 6f 76 65 72 68 65 61 | 64 20 72 65 71 75 69 72 | overhea|d requir|
|00000360| 65 64 20 62 79 20 43 2b | 2b 20 28 20 63 6f 6d 70 |ed by C+|+ ( comp|
|00000370| 69 6c 65 72 20 77 69 73 | 65 20 29 2e 0a 3e 20 0a |iler wis|e )..> .|
|00000380| 3e 20 54 68 65 72 65 27 | 73 20 6e 6f 20 69 6e 68 |> There'|s no inh|
|00000390| 65 72 65 6e 74 20 65 78 | 74 72 61 20 6f 76 65 72 |erent ex|tra over|
|000003a0| 68 65 61 64 20 69 6e 20 | 43 2b 2b 20 6f 76 65 72 |head in |C++ over|
|000003b0| 20 43 2e 0a 3e 20 0a 3e | 20 3e 49 74 20 73 65 65 | C..> .>| >It see|
|000003c0| 6d 73 20 61 73 20 69 66 | 20 65 76 65 72 79 20 43 |ms as if| every C|
|000003d0| 2b 2b 20 70 72 6f 67 72 | 61 6d 6d 65 72 20 77 61 |++ progr|ammer wa|
|000003e0| 6e 74 73 20 74 6f 20 27 | 6f 62 6a 65 63 74 27 69 |nts to '|object'i|
|000003f0| 7a 65 20 65 76 65 72 79 | 20 74 68 69 6e 67 0a 3e |ze every| thing.>|
|00000400| 20 77 69 74 68 6f 75 74 | 0a 3e 20 3e 63 6f 6e 73 | without|.> >cons|
|00000410| 69 64 65 72 69 6e 67 20 | 74 68 65 20 6f 76 65 72 |idering |the over|
|00000420| 68 65 61 64 20 69 6e 63 | 75 72 72 65 64 20 62 79 |head inc|urred by|
|00000430| 20 6f 62 6a 65 63 74 73 | 2e 0a 3e 20 3e 0a 3e 20 | objects|..> >.> |
|00000440| 49 66 20 74 68 61 74 20 | 77 61 73 20 74 68 65 20 |If that |was the |
|00000450| 63 61 73 65 20 2d 2d 20 | 61 6e 64 20 69 74 27 73 |case -- |and it's|
|00000460| 20 6e 6f 74 20 2d 2d 20 | 74 68 65 6e 20 74 68 65 | not -- |then the|
|00000470| 20 27 62 6c 61 6d 65 27 | 20 62 65 6c 6f 6e 67 73 | 'blame'| belongs|
|00000480| 20 74 6f 20 74 68 65 0a | 3e 20 70 72 6f 67 72 61 | to the.|> progra|
|00000490| 6d 6d 65 72 2c 20 6e 6f | 74 20 74 68 65 20 6c 61 |mmer, no|t the la|
|000004a0| 6e 67 75 61 67 65 2e 0a | 3e 20 0a 3e 20 3e 48 61 |nguage..|> .> >Ha|
|000004b0| 73 20 61 6e 79 6f 6e 65 | 20 67 6f 74 20 61 6e 79 |s anyone| got any|
|000004c0| 20 6f 70 69 6e 69 6f 6e | 73 20 6f 72 20 69 64 65 | opinion|s or ide|
|000004d0| 61 20 6f 66 20 74 68 65 | 20 6f 76 65 72 68 65 61 |a of the| overhea|
|000004e0| 64 20 69 6d 70 6f 73 65 | 64 20 62 79 20 43 2b 2b |d impose|d by C++|
|000004f0| 3f 3f 0a 3e 20 0a 3e 20 | 41 73 20 49 20 61 6c 72 |??.> .> |As I alr|
|00000500| 65 61 64 79 20 73 61 69 | 64 2c 20 6e 6f 6e 65 2e |eady sai|d, none.|
|00000510| 0a 3e 20 0a 3e 20 3e 41 | 20 73 69 6d 70 6c 65 20 |.> .> >A| simple |
|00000520| 70 6f 6e 64 65 72 20 3a | 20 46 6f 72 20 65 76 65 |ponder :| For eve|
|00000530| 72 79 20 6f 62 6a 65 63 | 74 20 69 6e 73 74 61 6e |ry objec|t instan|
|00000540| 63 65 2c 20 65 76 65 72 | 79 20 76 61 72 69 61 62 |ce, ever|y variab|
|00000550| 6c 65 20 6f 66 20 74 68 | 61 74 20 63 6c 61 73 73 |le of th|at class|
|00000560| 0a 3e 20 69 73 0a 3e 20 | 3e 64 75 70 6c 69 63 61 |.> is.> |>duplica|
|00000570| 74 65 64 2e 2e 2e 20 65 | 76 65 6e 20 69 66 20 69 |ted... e|ven if i|
|00000580| 74 73 20 6e 6f 74 20 72 | 65 71 75 69 72 65 64 2e |ts not r|equired.|
|00000590| 0a 3e 20 3e 0a 3e 20 41 | 73 73 75 6d 69 6e 67 20 |.> >.> A|ssuming |
|000005a0| 79 6f 75 27 72 65 20 72 | 65 66 65 72 72 69 6e 67 |you're r|eferring|
|000005b0| 20 74 6f 20 6e 6f 6e 2d | 73 74 61 74 69 63 20 6d | to non-|static m|
|000005c0| 65 6d 62 65 72 73 20 2d | 2d 20 79 65 73 20 63 6f |embers -|- yes co|
|000005d0| 73 74 20 28 6f 76 65 72 | 20 43 20 73 74 72 75 63 |st (over| C struc|
|000005e0| 74 75 72 65 73 29 0a 3e | 20 74 6f 20 62 6f 6f 74 |tures).>| to boot|
|000005f0| 21 0a 3e 20 0a 3e 20 54 | 68 65 20 65 78 74 72 61 |!.> .> T|he extra|
|00000600| 20 22 63 6f 73 74 22 20 | 79 6f 75 20 6d 61 79 20 | "cost" |you may |
|00000610| 62 65 20 63 6f 6e 63 65 | 72 6e 65 64 20 61 62 6f |be conce|rned abo|
|00000620| 75 74 2c 20 68 61 73 20 | 74 6f 20 64 6f 20 77 69 |ut, has |to do wi|
|00000630| 74 68 0a 3e 20 76 69 72 | 74 75 61 6c 20 66 75 6e |th.> vir|tual fun|
|00000640| 63 74 69 6f 6e 73 20 61 | 6e 64 20 76 69 72 74 75 |ctions a|nd virtu|
|00000650| 61 6c 20 64 65 72 69 76 | 61 74 69 6f 6e 2e 20 20 |al deriv|ation. |
|00000660| 54 68 69 73 20 63 6f 73 | 74 20 69 73 20 6e 6f 74 |This cos|t is not|
|00000670| 0a 3e 20 72 65 61 6c 20 | 61 73 20 65 71 75 69 76 |.> real |as equiv|
|00000680| 61 6c 65 6e 74 20 43 20 | 63 6f 64 65 20 22 63 6f |alent C |code "co|
|00000690| 73 74 73 22 20 6a 75 73 | 74 20 61 73 20 6d 75 63 |sts" jus|t as muc|
|000006a0| 68 20 2d 2d 20 61 6e 64 | 0a 3e 20 69 6e 20 73 6f |h -- and|.> in so|
|000006b0| 6d 65 20 63 61 73 65 73 | 20 6d 6f 72 65 20 2d 2d |me cases| more --|
|000006c0| 20 74 68 61 6e 20 74 68 | 65 20 76 69 72 74 75 61 | than th|e virtua|
|000006d0| 6c 20 64 69 73 70 61 74 | 63 68 20 6d 65 63 68 61 |l dispat|ch mecha|
|000006e0| 6e 69 73 6d 20 6f 66 20 | 43 2b 2b 2e 0a 3e 20 0a |nism of |C++..> .|
|000006f0| 3e 20 4f 6e 20 74 68 65 | 20 6f 74 68 65 72 20 73 |> On the| other s|
|00000700| 69 64 65 20 6f 66 20 74 | 68 65 20 63 6f 69 6e 2c |ide of t|he coin,|
|00000710| 20 43 2b 2b 20 68 61 73 | 20 69 6e 6c 69 6e 65 2c | C++ has| inline,|
|00000720| 20 77 68 69 6c 65 20 43 | 20 64 6f 65 73 6e 27 74 | while C| doesn't|
|00000730| 2e 0a 3e 20 54 68 69 73 | 20 63 61 6e 20 6d 61 6b |..> This| can mak|
|00000740| 65 20 43 2b 2b 20 63 6f | 64 65 20 6d 6f 72 65 20 |e C++ co|de more |
|00000750| 65 66 66 69 63 69 65 6e | 74 2e 0a 3e 20 0a 3e 20 |efficien|t..> .> |
|00000760| 2d 2d 0a 3e 20 0a 3e 20 | 50 65 74 65 0a 0a 57 68 |--.> .> |Pete..Wh|
|00000770| 61 74 20 61 62 6f 75 74 | 20 74 68 65 20 6f 76 65 |at about| the ove|
|00000780| 72 68 65 61 64 20 69 6e | 63 75 72 72 65 64 20 77 |rhead in|curred w|
|00000790| 69 74 68 20 65 78 63 65 | 70 74 69 6f 6e 20 68 61 |ith exce|ption ha|
|000007a0| 6e 64 6c 69 6e 67 20 61 | 6e 64 20 74 65 6d 70 6c |ndling a|nd templ|
|000007b0| 61 74 65 73 3f 20 20 41 | 6c 73 6f 2c 20 64 6f 65 |ates? A|lso, doe|
|000007c0| 73 6e 27 74 20 0a 6f 62 | 6a 65 63 74 2d 6f 72 69 |sn't .ob|ject-ori|
|000007d0| 65 6e 74 65 64 20 70 72 | 6f 67 72 61 6d 6d 69 6e |ented pr|ogrammin|
|000007e0| 67 20 28 72 65 66 65 72 | 72 69 6e 67 20 74 6f 20 |g (refer|ring to |
|000007f0| 43 2b 2b 29 20 74 65 6e | 64 20 74 6f 20 68 61 76 |C++) ten|d to hav|
|00000800| 65 20 6d 6f 72 65 20 66 | 75 6e 63 74 69 6f 6e 20 |e more f|unction |
|00000810| 63 61 6c 6c 20 6f 76 65 | 72 68 65 61 64 20 74 68 |call ove|rhead th|
|00000820| 61 6e 20 0a 73 74 72 75 | 63 74 75 72 65 64 20 70 |an .stru|ctured p|
|00000830| 72 6f 67 72 61 6d 6d 69 | 6e 67 20 28 72 65 66 65 |rogrammi|ng (refe|
|00000840| 72 72 69 6e 67 20 74 6f | 20 43 29 3f 0a 0a 2d 2d |rring to| C)?..--|
|00000850| 20 0a 53 74 65 76 65 20 | 4c 65 65 0a 43 6f 6d 70 | .Steve |Lee.Comp|
|00000860| 75 74 65 72 20 45 6e 67 | 69 6e 65 65 72 69 6e 67 |uter Eng|ineering|
|00000870| 2f 43 6f 6d 70 75 74 65 | 72 20 53 63 69 65 6e 63 |/Compute|r Scienc|
|00000880| 65 0a 49 6f 77 61 20 53 | 74 61 74 65 20 55 6e 69 |e.Iowa S|tate Uni|
|00000890| 76 65 72 73 69 74 79 0a | 65 6d 61 69 6c 20 2d 3e |versity.|email ->|
|000008a0| 20 73 6a 6c 65 65 40 69 | 61 73 74 61 74 65 2e 65 | sjlee@i|astate.e|
|000008b0| 64 75 0a 57 57 57 20 20 | 20 2d 3e 20 68 74 74 70 |du.WWW | -> http|
|000008c0| 3a 2f 2f 77 77 77 2e 63 | 73 2e 69 61 73 74 61 74 |://www.c|s.iastat|
|000008d0| 65 2e 65 64 75 2f 7e 73 | 6a 6c 65 65 2f 68 6f 6d |e.edu/~s|jlee/hom|
|000008e0| 65 70 61 67 65 2e 68 74 | 6d 6c 0a |epage.ht|ml. |
+--------+-------------------------+-------------------------+--------+--------+